package com.zxy.ziems.server.statistics.controller;

import com.zxy.btp.common.response.JsonResponse;
import com.zxy.ziems.server.dto.DateDto;
import com.zxy.ziems.server.energy.service.DataChartService;
import com.zxy.ziems.server.statistics.pojo.param.BudgetQueryParam;
import com.zxy.ziems.server.statistics.pojo.vo.ChartMultiVo;
import com.zxy.ziems.server.statistics.service.WaterService;
import com.zxy.ziems.server.vo.ChartVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 水统计
 */
@RestController
@RequestMapping("/api/statistics/water")
public class WaterController {

    @Autowired
    private WaterService waterService;
    @Autowired
    private DataChartService dataChartService;

    /**
     * 水科费用预算
     * @param budgetQueryParam
     * @return
     */
    @GetMapping("/budget")
    public JsonResponse<ChartVo> budget(@Validated BudgetQueryParam budgetQueryParam) {
        return JsonResponse.SUCCESS(dataChartService.budget(budgetQueryParam));
    }
}
